import _fetch from './request.js'

// 写api    短信验证码
function getPhoneCodeApi(data) {
    return _fetch({
        url: '/sendsms',
        method: 'post',
        data: data
    })
}
// 注册
function getRegisterUser(data) {
    return _fetch({
        url: '/register',
        method: 'post',
        data
    })
}

export {
    getPhoneCodeApi,
    getRegisterUser
}